package com.atxiao.demo.service;

import com.atxiao.demo.bean.User;
import org.springframework.stereotype.Service;

public interface UserService {
    //通过用户名和密码来判断是否登录成功
    User getUser(String phone,String password);
    //判断用户名存不存在
    User getUserByPhone(String phone);
    //判断密码正不正确
    String getUserNameByPassword(String password);
    //注册用户
    boolean registerUser(String name,String password,String phone);

    //修改登陆状态
    void changeStatus(int status,String name,String time);
}
